﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace JibberJabber.PartDesigners
{
    public partial class QuestionOptionDesigner : PartDesigner
    {
        public QuestionOptionDesigner()
        {
            InitializeComponent();
        }

        public override Type[] AllowedChildren
        {
            get
            {
                return new Type[] { typeof(TextPartDesigner),
                    typeof(QuestionDesigner), typeof(DelegateDesigner) };
            }
        }

        public override string StartXml
        {
            get
            {
                return "<option text=\"" + txtName.Text
                    + "\">";
            }
        }

        public override string EndXml
        {
            get
            {
                return "</option>";
            }
        }
    }
}
